package cn.exrick.xboot.modules.assessment.service;

import cn.exrick.xboot.base.XbootBaseService;
import cn.exrick.xboot.common.utils.CustomPage;
import cn.exrick.xboot.common.vo.SearchVo;
import cn.exrick.xboot.modules.assessment.entity.HkAssessmentInfo;
import cn.exrick.xboot.modules.assessment.vo.HkAssessmentInfoAndFlowQueryVo;
import cn.exrick.xboot.modules.assessment.vo.HkassessmentScoreAndRecordVo;
import cn.exrick.xboot.modules.assessment.vo.ItemAndProcessIdVo;
import cn.exrick.xboot.modules.assessment.vo.ScoreAndCommentHistoryVo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;


/**
 * 绩效信息表接口
 * @author yck
 */
public interface HkAssessmentInfoService extends XbootBaseService<HkAssessmentInfo, String> {

    /**
    * 多条件分页获取
    * @param hkAssessmentInfo
    * @param searchVo
    * @param pageable
    * @return
    */
    Page<HkAssessmentInfo> findByCondition(HkAssessmentInfo hkAssessmentInfo, SearchVo searchVo, Pageable pageable);

    CustomPage getHkAssessmentInfoAndFlow(HkAssessmentInfoAndFlowQueryVo vo);

    HkassessmentScoreAndRecordVo getHkAssessmentScoreDetial(String processInstanceId);

    List<ScoreAndCommentHistoryVo> getItemScoreAndCommentHistory(ItemAndProcessIdVo vo);
    void synchronizationTemplateId();
}